package com.jacobson.core.widget.security.authc.credential

import com.jacobson.core.widget.security.authc.AuthenticationInfo
import com.jacobson.core.widget.security.authc.AuthenticationToken

/**
 * ================================================
 *
 *  @author Wucz on 2018/8/7 16:33
 * ================================================
 */
interface CredentialsMatcher {
    /**
     * 认证操作
     * @param token 待校验的Token
     * @param info 认证的数据
     * @return 认证结果
     */
    fun doCredentialsMatch(token: AuthenticationToken, info: AuthenticationInfo): Boolean
}
